package com.jiangwz.boot.starter;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @author jiangwz
 * @create 2019/8/27.
 */
@ConfigurationProperties(prefix = "person")
public class PersonProperties {

    private String name = "default name";
    private int age = 6;

    public String getName() {
        return name;
    }

    public PersonProperties setName(String name) {
        this.name = name;
        return this;
    }

    public int getAge() {
        return age;
    }

    public PersonProperties setAge(int age) {
        this.age = age;
        return this;
    }
}
